#include "roundabout_scene1.inc"    // The include files contain


#declare CATADIOPTRIC_MIRROR_HEIGHT = 5;
#declare PARABOLIC_MIRROR_PARAMETER_H = 0.12;
#declare CATADIOPTRIC_MIRROR_TO_CAMERA_DISTANCE = 0.15;
#declare CATADIOPTRIC_MIRROR_SPHERE = sphere{
   <0,0,0>,2
   finish{
     reflection {1}
     ambient 0
     diffuse 0
   }
}

#declare f_parabolic_mirror = function(x,y,z, param){
    (pow(x,2) + pow(z,2)) - 2*PARABOLIC_MIRROR_PARAMETER_H*y
}

/*
isosurface {
    function { 0.08*(pow(x,2) + pow(z,2)) - y  }
   contained_by { box { -3, 3 } }
     pigment {Red}
   finish{
     reflection {0.1}
     ambient 0.3
     diffuse 0.6
   }
     }
*/
#declare CATADIOPTRIC_MIRROR_PARABOLA = isosurface {
    function { f_parabolic_mirror(x,y,z, 20)  }
    contained_by { box { -12, 12 } }
   finish{
     reflection {1}
     ambient 0
     diffuse 0
   }
   no_shadow
  }


object {CATADIOPTRIC_MIRROR_PARABOLA translate y*CATADIOPTRIC_MIRROR_HEIGHT}

  camera {
    orthographic
    location <0, CATADIOPTRIC_MIRROR_HEIGHT - CATADIOPTRIC_MIRROR_TO_CAMERA_DISTANCE , 0>
    look_at  <0, CATADIOPTRIC_MIRROR_HEIGHT,  0>    
  }





    